<template>
	<form @submit="$emit('_formIdSubmit',$event)" data-type="navigate" data-url="/pages/search/search" reportSubmit="true">
		<button formType="submit" id="_formIdSubmit" class="_formIdSubmit">
			<view class="search-block" :style="{backgroundColor:param?param.backgroundColorW:''}">
				<navigator :style="{backgroundColor:param?param.backgroundColor:'',textAlign:param?param.textPosition:'',paddingLeft: upx_24,borderRadius:param?new_borderRadius:''}">
					<image :src="__wxapp_img.search.search.url"></image>
					<text :style="{color:param?param.color:''}">{{param?param.text:'搜索'}}</text>
				</navigator>
			</view>
		</button>
	</form>
</template>

<script>var myVue = {};
	export default {
		computed: {
			upx_24() {
				return uni.upx2px(24)+'px';
			}
		},
		props: ['param','__wxapp_img'],
		computed: {
			new_borderRadius() {
				return uni.upx2px(this.param.borderRadius) + 'px';
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>
	
<style scoped>
</style>
